<?php echo $javascript->link('add-edit_only.min.js');?>
<div class="cetrodist form cont6" style="width: 99%">
<?php echo $form->create('CentroDist');?>
<?php echo $form->hidden('id');?>
<fieldset class="ui-corner-all ui-widget-content">
    <legend class="ui-corner-all ui-widget-header ui-state-active">Modificando Centro de Distribuci&oacute;n</legend>
    <div align="left" style="padding:1px 2px 1px 2px;"><?php $session->flash(); ?></div>
    <div class="grid07b">C&oacute;digo</div>
    <div class="grid2">
        <?php echo $form->input('codigo', array(
            'label'=>false,
            'size'=>10
        ));?>
    </div>
    <div class="clear"></div>

    <div class="grid07b">Descripci&oacute;n</div>
    <div class="grid2">
        <?php echo $form->input('descripcion', array(
            'label'=>false,
            'size'=>60
        ));?>
    </div>
    <div class="grid07b">Desc. Corta</div>
    <div class="grid2">
        <?php echo $form->input('descripcion_corta', array(
            'label'=>false,
            'size'=>60
        ));?>
    </div>
    <div class="clear"></div>

    <div class="grid07b">Cuidad</div>
    <div class="grid2">
        <?php echo $form->input('ciudad', array(
            'label'=>false,
            'size'=>60
        ));?>
    </div>
    <div class="grid07b">Simbolo</div>
    <div class="grid2">
        <?php echo $form->input('simbolo', array(
            'label'=>false,
            'size'=>20
        ));?>
    </div>
    <div class="clear"></div>

    <div class="grid07b">Direcci&oacute;n</div>
    <div class="grid2">
        <?php echo $form->input('direccion', array(
            'label'=>false,
            'size'=>60
        ));?>
    </div>
    <div class="grid07b">Tel&eacute;fono</div>
    <div class="grid2">
        <?php echo $form->input('telefono', array(
            'label'=>false,
            'size'=>20
        ));?>
    </div>
    <div class="clear"></div>

    <div class="grid07b">Giro</div>
    <div class="grid2">
        <?php echo $form->input('giro', array(
            'label'=>false,
            'size'=>60
        ));?>
    </div>
    <div class="grid07b">Ubigeo</div>
    <div class="grid2">
        <?php echo $form->input('ubigeo_id', array(
            'label'=>false,
                'options'=>$ubigeos
        ));?>
    </div>
    <div class="clear"></div>  
    <div class="grid07b">Dominio</div>
    <div class="grid2">
        <?php echo $form->input('dominio', array(
            'label'=>false,
            'size'=>20
        ));?>
    </div>
    <div class="clear"></div> <br/>
    <fieldset class="ui-corner-all ui-widget-content">
        <legend class="ui-corner-all ui-widget-header ui-state-active">Representante Legal 1</legend>
        <div class="grid07b">Nombre</div>
        <div class="grid2">
            <?php echo $form->input('representante1_desc', array(
                'label'=>false,
                'size'=>60
            ));?>
        </div>
        <div class="grid07b">Documento</div>
        <div class="grid2">
            <?php echo $form->input('representante1_tipo_doc_id', array(
                'label'=>false,
                'div'=>false,
                'options'=>$tipoDocumentos
            ));?>
            <?php echo $form->input('representante1_numero_doc', array(
                'label'=>false,
                'div'=>false,
                'size'=>20
            ));?>
        </div>
        <div class="clear"></div>

        <div class="grid07b">Ubigeo</div>
        <div class="grid2">
            <?php echo $form->input('representante1_ubigeo_id', array(
                'label'=>false,
                'options'=>$ubigeos
            ));?>
        </div>
        <div class="clear"></div>
    </fieldset>
    <fieldset class="ui-corner-all ui-widget-content">
        <legend class="ui-corner-all ui-widget-header ui-state-active">Representante Legal 2</legend>
        <div class="grid07b">Nombre</div>
        <div class="grid2">
            <?php echo $form->input('representante2_desc', array(
                'label'=>false,
                'size'=>60
            ));?>
        </div>
        <div class="grid07b">Documento</div>
        <div class="grid2">
            <?php echo $form->input('representante2_tipo_doc_id', array(
                'label'=>false,
                'div'=>false,
                'options'=>$tipoDocumentos
            ));?>
            <?php echo $form->input('representante2_numero_doc', array(
                'label'=>false,
                'div'=>false,
                'size'=>20
            ));?>
        </div>
        <div class="clear"></div>

        <div class="grid07b">Ubigeo</div>
        <div class="grid2">
            <?php echo $form->input('representante2_ubigeo_id', array(
                'label'=>false,
                'options'=>$ubigeos
            ));?>
        </div>
        <div class="clear"></div>
    </fieldset>
</fieldset>
<?php echo $form->submit('Guardar', array('div' => false,'class' => 'btnsave'));?>
<?php echo $html->link('Cancelar', array('action'=>'index'), array('class'=>'lnkbutton btncancel'));?>
<?php echo $form->end();?>
</div><p/>
